<template>
  <div>
    <link
      rel="stylesheet"
      href="http://at.alicdn.com/t/font_2293181_yg91awt43kn.css"
    />
    <div class="sty">
      <i class="iconfont icon-Arrow-Left2" @click="ss"></i> <span>确认订单</span>
    </div>
    <p class="hei"></p>
    <div class="ka">
      <p class="jie">
        本次购买的课程仅属于各自对应的学期或有效期，请认真查看学期或课
        程有效时间范围，合理安排学习时间
      </p>
    </div>
    <p class="ziji"></p>
    <div v-for="(item, i) in aa" :key="i" class="box">
        <div class="tutou">
          <img :src="require(`../assets/${item.img}`)" alt="" style="width:200px;height:100px;">
                <h6>{{item.title}} <p>永久有效</p> <p>{{item.money}}</p></h6>
                <div class="yes">小计:{{item.money}}</div>
            </div>
            <div class="no"></div>
            <div class="kuang"><p>总计:{{item.money}}</p> </div>
            <div class="wangyiyun"><p>实付金额: <b>{{item.money}}</b> </p> <router-link :to="{ path: '/zhanghao', query: { id: item.id } }"><span >提交订单</span></router-link> </div>
        </div>
  </div>
</template>

<script>
import $ from "jquery"
import axios from "axios";
import { getxiang } from "@/api";

export default {
  data() {
    return {
      aa: {},
    };
  },
  mounted() {
    let { id } = this.$route.query;
    console.log(id);
    getxiang(id).then((res) => {
      this.aa = res.data;
    });
    
  },
  methods: {
      ss(){
          this.$router.history.go(-1)
      },
      
  },
};
</script>

<style scoped>
.wangyiyun b{
    color: red;
}
.wangyiyun p{
    float: left;
     height: 50px;
     line-height: 50px;
     margin-left: 8px;
}
.wangyiyun span{
    float: right;
    width: 120px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background:rgb(240, 71, 20);
    color: #fff;
    display: inline;
}
.wangyiyun{
    border-top: 1px solid rgb(187, 186, 186);
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    /* background:pink; */
}
.kuang p{
    width: 95%;
    margin: 0 auto;
    margin-top: 15px;
}
.kuang{
    width: 100%;
    text-align: right;
    height: 50px;
    border-bottom: 1px solid rgb(180, 178, 178);
    overflow: hidden;
}
.no{
    width: 100%;
    height: 20px;
    background: #f3f3f3;
}
.tutou{
    width: 95%;
    height: 180px;
    margin: 0 auto;
    position: relative;
}
.yes{
    position: absolute;
    right: 0;
    bottom: 10px;
}
.tutou img{
    float: left;
    margin-top: 20px;
}
.tutou h6{
    width: 135px;
    float: left;
    margin-top: 40px;
    margin-left: 10px;
}
.tutou h6 p{
    margin-top: 10px;
}
.box{
    width: 100%;
}
.ziji{
    width: 100%;
    height: 10px;
    background: #f5f5f5;
}
.ka{
    width: 100%;
    height: 55px;
    /* background: pink; */
    overflow: hidden;
}
.jie{
    width: 95%;
    margin: 0 auto;
    font-size: 14px;
    margin-top: 7px;
}
.sty {
  width: 100%;
  height: 40px;
  /* background: pink; */
}
.sty span {
  margin-left: 150px;
  margin-top: 10px;
  display: inline-block;
  /* text-align: center; */
  /* margin: 0 auto; */
}
.hei {
  width: 100%;
  height: 7px;
  background: #f5f5f5;
}
</style>
